<?php


$directory = "../portalfiles/".getPortalUrl()."/css/custom/";

//get all image files with a .jpg extension.
$files = glob($directory . "*.css");

//print each file name
foreach($files as $file)
{
?>

<script>


    $('#x_customCss').append(new Option('<?php echo $file; ?>', '<?php echo $file; ?>', true, true));


</script>

<?php
}


$directory = "../portalfiles/".getPortalUrl()."/js/custom/";

//get all image files with a .jpg extension.
$files = glob($directory . "*.js");

//print each file name
foreach($files as $file)
{
    ?>

<script>


    $('#x_customScript').append(new Option('<?php echo $file; ?>', '<?php echo $file; ?>', true, true));


</script>

<?php
}

?>
